package com.ctyon.watchmanager.bean;

import com.ctyon.common.util.DataUtil;
import com.mcxtzhang.indexlib.IndexBar.bean.BaseIndexPinyinBean;

/**
 * CreateDate：19-7-4 on 上午11:49
 * Describe:
 * Coder: lee
 */
public class ContactBean extends BaseIndexPinyinBean{

    private String name;
    private String number;
    private boolean checked;

    public ContactBean() {
    }

    public ContactBean(String name, String number) {
        this.name = name;
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public boolean getChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    @Override
    public String toString() {
        return number.trim().replace(" ", "") + "&" + DataUtil.string2Unicode(name.trim().replace(" ", ""));
    }

    @Override
    public String getTarget() {
        return name.trim();
    }

    @Override
    public boolean isNeedToPinyin() {
        return true;
    }

    @Override
    public boolean isShowSuspension() {
        return true;
    }

}
